﻿using Abp.Domain.Entities;
using Abp.Domain.Entities.Auditing;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace shenghua.Basics.Feedbacks
{
    /// <summary>
    /// 意见反馈
    /// </summary>
    public class Feedback: Entity, ICreationAudited
    {
        public string Name { get; set; }
        public string EmailAddress { get; set; }
        public string PhoneNumber { get; set; }
        public string Content { get; set; }
        public string TypeName { get; set; }
        public string Reply { get; set; }
        public DateTime CreationTime { get; set; }
        public long? CreatorUserId { get; set; }
        public FeedbackStatus Status { get; set; }

        public bool IsReplied
        {
            get
            {
                return !string.IsNullOrWhiteSpace(Reply);
            }
        }
    }

    public enum FeedbackStatus
    {
        PendingAudit = 0,
        Audited = 1,
        AuditFailed = 2
    }
}
